package edu.zut.software.identity.controller;

import edu.zut.software.identity.utils.HttpClientUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.data.redis.core.StringRedisTemplate;



@Order(1)
public class StartupRunner implements CommandLineRunner {

    private static final Logger logger = LoggerFactory.getLogger(StartupRunner.class);

    @Autowired
    private StringRedisTemplate stringRedisTemplate;


    @Override
    public void run(String... args){
        HttpClientUtil.setStringRedisTemplate(stringRedisTemplate);
    }


}
